package com.d0325;

import java.io.FileReader;
import java.text.MessageFormat;
import java.util.Properties;

public class TestMessageFormat {
    public static void main(String[] args) {
        String pattern="{0}您好，您应付的金额{1}";
        System.out.println(MessageFormat.format(pattern,new Object[]{"Alice",156}));
        System.out.println(MessageFormat.format(pattern,new Object[]{"Lily",114}));
    }

    }
